package com.itheima.Jiuye07;

public class ExceptionDemo {
    public static void main(String[] args) {
        int[] arr = null;
        try {
            Printarr(arr);
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.out.println("憨批");
    }

    private static void Printarr(int[] arr) {
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }
    }
}
